package com.sky.wsp.jasypt.demo.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @desccription 在此输入描述
 * @auth wangshaopeng@talkweb.com.cn
 * @date 2023/11/03
 */
@Component
@ConfigurationProperties(prefix = "spring.datasource")
public class SamProperties {
    private String username;
    private String password;
    private String encUsername;
    private String encPassword;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getEncUsername() {
        return encUsername;
    }

    public void setEncUsername(String encUsername) {
        this.encUsername = encUsername;
    }

    public String getEncPassword() {
        return encPassword;
    }

    public void setEncPassword(String encPassword) {
        this.encPassword = encPassword;
    }

    @Override
    public String toString() {
        return "SamProperties{" +
                "username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", encUsername='" + encUsername + '\'' +
                ", encPassword='" + encPassword + '\'' +
                '}';
    }
}